Optimal. Leaf size=135 \[ \frac {2 B \sin (c+d x) \sqrt {b \sec (c+d x)}}{d}-\frac {2 b B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 C \sin (c+d x) (b \sec (c+d x))^{3/2}}{3 b d}+\frac {2 C \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {b \sec (c+d x)}}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 135, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 7, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.219, Rules used = {4047, 3768, 3771, 2639, 12, 16, 2641} \[ \frac {2 B \sin (c+d x) \sqrt {b \sec (c+d x)}}{d}-\frac {2 b B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 C \sin (c+d x) (b \sec (c+d x))^{3/2}}{3 b d}+\frac {2 C \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {b \sec (c+d x)}}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 16
Rule 2639
Rule 2641
Rule 3768
Rule 3771
Rule 4047
Rubi steps
\begin {align*} \int \sqrt {b \sec (c+d x)} \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=\frac {B \int (b \sec (c+d x))^{3/2} \, dx}{b}+\int C \sec ^2(c+d x) \sqrt {b \sec (c+d x)} \, dx\\ &=\frac {2 B \sqrt {b \sec (c+d x)} \sin (c+d x)}{d}-(b B) \int \frac {1}{\sqrt {b \sec (c+d x)}} \, dx+C \int \sec ^2(c+d x) \sqrt {b \sec (c+d x)} \, dx\\ &=\frac {2 B \sqrt {b \sec (c+d x)} \sin (c+d x)}{d}+\frac {C \int (b \sec (c+d x))^{5/2} \, dx}{b^2}-\frac {(b B) \int \sqrt {\cos (c+d x)} \, dx}{\sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}\\ &=-\frac {2 b B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 B \sqrt {b \sec (c+d x)} \sin (c+d x)}{d}+\frac {2 C (b \sec (c+d x))^{3/2} \sin (c+d x)}{3 b d}+\frac {1}{3} C \int \sqrt {b \sec (c+d x)} \, dx\\ &=-\frac {2 b B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 B \sqrt {b \sec (c+d x)} \sin (c+d x)}{d}+\frac {2 C (b \sec (c+d x))^{3/2} \sin (c+d x)}{3 b d}+\frac {1}{3} \left (C \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx\\ &=-\frac {2 b B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 C \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {b \sec (c+d x)}}{3 d}+\frac {2 B \sqrt {b \sec (c+d x)} \sin (c+d x)}{d}+\frac {2 C (b \sec (c+d x))^{3/2} \sin (c+d x)}{3 b d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.31, size = 90, normalized size = 0.67 \[ \frac {(b \sec (c+d x))^{3/2} \left (2 \sin (c+d x) (3 B \cos (c+d x)+C)-6 B \cos ^{\frac {3}{2}}(c+d x) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )+2 C \cos ^{\frac {3}{2}}(c+d x) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )\right )}{3 b d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.46, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right )\right )} \sqrt {b \sec \left (d x + c\right )}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right )\right )} \sqrt {b \sec \left (d x + c\right )}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 1.79, size = 508, normalized size = 3.76 \[ -\frac {2 \sqrt {\frac {b}{\cos \left (d x +c \right )}}\, \left (-1+\cos \left (d x +c \right )\right )^{2} \left (3 i B \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )-3 i B \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticE \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )-i C \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )+3 i B \cos \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right ) \sin \left (d x +c \right )-3 i B \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \EllipticE \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right ) \cos \left (d x +c \right )-i C \sin \left (d x +c \right ) \cos \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )+3 B \left (\cos ^{2}\left (d x +c \right )\right )+C \left (\cos ^{2}\left (d x +c \right )\right )-3 B \cos \left (d x +c \right )-C \right ) \left (1+\cos \left (d x +c \right )\right )^{2}}{3 d \cos \left (d x +c \right ) \sin \left (d x +c \right )^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right )\right )} \sqrt {b \sec \left (d x + c\right )}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \left (\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )\,\sqrt {\frac {b}{\cos \left (c+d\,x\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {b \sec {\left (c + d x \right )}} \left (B + C \sec {\left (c + d x \right )}\right ) \sec {\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________